# a = 2
# print(a)
for i in range(5):
    print(i*2)

for i in range(3):
    print(i)